package chapter030;

class Studentf {
    String name;
    int age;
    String school = "A大学";

    public Studentf(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public void info() {
        System.out.println("姓名：" + this.name + ",年龄：" + this.age + ",学校：" + school);
    }
}

public class Example13 {
    public static void main(String[] args) {
        Studentf stu1 = new Studentf("张三", 18);
        Studentf stu2 = new Studentf("李四", 19);
        Studentf stu3 = new Studentf("王五", 20);
        stu1.info();
        stu2.info();
        stu3.info();
    }
}